package observer;

/**
 * @Author: Doream
 * @Date: 2022/1/30 11:50
 */
public class ObserverImpl implements Observer{
    private String name;

    public ObserverImpl(String name) {
        this.name = name;
    }


    @Override
    public void update(String message) {
        System.out.println(name+"接受到了信息："+message);
    }
}
